
import random
#随机打印
print(random.random())
#打印范围内的随机数
print(random.randrange(1,100))
#生成随机验证码
checkcode = ''
for i in range(4):
    current = random.randrange(0, 6)
    if current != i and current+1 != i:
       temp = chr(random.randint(65, 90))
        # 65-90是A-Z
    elif current+1 == i:
        temp = chr(random.randint(97, 122))
         # 97-122是a-z
    else:
        temp = random.randint(0, 9)
    checkcode += str(temp)
print(checkcode)
